% !TEX root = ../main.tex  
\ifx\allfiles\undefined
    \include{preamble}
\fi
\chapter{Python学习笔记}

\ifx\allfiles\undefine
    \end{document}
\fi